//++
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Module Name:
//
//  ItemUpdatedEventArgs.cs
//    
// Abstract:
//
//  This module implements the ItemUpdatedEventArgs class. This class encapsulates the NotificationItem instance(s) that have been updated.
//  
//--

using System;

namespace Microsoft.EnhancedReminders.Scheduler
{
    /// <summary>
    /// Encapsulates the notification(s) that has been updated.
    /// </summary>
    internal sealed class ItemUpdatedEventArgs : EventArgs
    {
        private NotificationItem[] _notificationItems;
        private string _id;

        /// <summary>
        /// ctor.
        /// </summary>
        /// <param name="id">The ID of the notification(s) that have been updated</param>
        /// <param name="notificationItems">The updated notification(s)</param>
        internal ItemUpdatedEventArgs(string id, NotificationItem[] notificationItems)
        {
            _id = id;
            _notificationItems = notificationItems;
        }

        /// <summary>
        /// The ID of the notification(s) that have been updated.
        /// </summary>
        internal string Id
        {
            get
            {
                return _id;
            }
        }

        /// <summary>
        /// The notification(s) that have been updated.
        /// </summary>
        internal NotificationItem[] NotificationItems
        {
            get
            {
                return _notificationItems;
            }
        }
    }
}
